<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>Page Title</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'> 
</head>
<body>
    
</body>
</html>
<script>  
    //默认获取服务器的信息
    setTimeout(function(){
        getUser()  
    },2000)

    async function getUser(){
      const user=  await window.eduAPI.getAppInfo();
      alert(JSON.stringify(user)) 
      await window.eduAPI.ipcMessage("showAiChat",{query:"你好啊"}) 
    }

    //初始化的机构信息
    function initEduData(data){
        alert(JSON.stringify(data));
    } 
</script>